package org.swan.web.user.service;

import org.swan.web.user.bean.UserRoleBean;

import java.util.List;
import java.util.Optional;

public interface UserRoleService {

    Optional<UserRoleBean> getUserRoleById(long id);

    long addUserRole(UserRoleBean UserRoleBean);

    UserRoleBean updateUserRole(UserRoleBean UserRoleBean);

    UserRoleBean deleteUserRoleById(long UserRoleId);

    List<UserRoleBean> list(int offset, int rows);
}
